#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
int main()
{
	double x = 0.0;
	scanf("%lf", &x);
	double E0 = -775.0;
	double B = 1.0;
	double V0 = 25.0;
	double C = 0.1;
	double Mie_Gruneisen = 0;
	double Murnaghan = 0;
	Mie_Gruneisen = E0 + (B * V0) / C - ((B * V0) * (x / V0**(-1.0 / 3.0)) - (x / V0**-C / 3.0) / C) / (C - 1);
	Murnaghan = E0 + (B * V0) * ((x / V0** -C - 1) / C + x / V0 - 1) / (C + 1);
	printf("%lf %lf", Mie_Gruneisen, Murnaghan);
	
	return 0;
}